#!/bin/sh

if [ -n "`%OPTWARE_TARGET_PREFIX%/bin/pidof ntop`" ]; then 
    %OPTWARE_TARGET_PREFIX%/bin/killall ntop 2>/dev/null
fi

mkdir -p %OPTWARE_TARGET_PREFIX%/var/ntop/log

%OPTWARE_TARGET_PREFIX%/bin/ntop -a %OPTWARE_TARGET_PREFIX%/var/ntop/log/access_log -d -L -M --skip-version-check -u0 -w 3000 -W 3001
